﻿
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
namespace WinnerCMS.Model
{
    public partial class Right
    {
        public Right()
        {
            Roles = new List<Role>();
            Users = new List<User>();
        }

        public string Id { get; set; }
        public string ModelId { get; set; }
        public string Name { get; set; }
        public string Code { get; set; }
        public string OldCode { get; set; }
        public int RootId { get; set; }
        public int OrderId { get; set; }
        public string ParentId { get; set; }
        public bool IsAdmin { get; set; }
       

        public virtual ICollection<Role> Roles { get; set; }
        public virtual ICollection<User> Users { get; set; }
         
    }
}